package com.frank.im.base;

import org.java_websocket.framing.Framedata;
import org.java_websocket.handshake.ServerHandshake;

/**
 * socket接口类
 * 
 * @author Frank
 * @version 1.0 Create by 2016.4.8
 */
public interface Imable {
	void onOpen(ServerHandshake handshakedata);

	void onMessage(String message);

	void onFragment(Framedata fragment);

	void onClose(int code, String reason, boolean remote);

	void onError(Exception ex);
}
